<?php

class Faq extends MY_Controller {

	function Faq()
	{
		parent::MY_Controller();
		$this->load->model('Faq_model');
		
	}
	
	function index()
	{	
		// Set meta
		$title = 'FAQ &raquo; '.$this->data['site']['site_title'];
		$data['web_title'] = $title;
		$data['meta_title'] = $title.', Tanya Jawab, FAQ';
		$data['meta_description'] = purify($this->data['site']['site_description'].', Tanya Jawab, FAQ');
		$data['meta_keyword'] = $this->data['site']['site_keyword'].', Tanya Jawab, FAQ';
		
		// Get Faq
		$data['list_faq'] = $this->Faq_model->get_rows('*','','')->result_array();
		
		// Send and Load page
		$data['page'] = 'faq_view';
		$this->load->vars($data);
		$this->load->view('template_view');	
	}
}	

/* End of file faq.php */
/* Location: ./application/controllers/faq.php */
?>